package view;

import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.SwingUtilities;

public class Home extends JFrame{
	
	public Home() {
		
		//JFRAME Parameters
	    setTitle("Monte Carlo");
	    setSize(500, 200);
	    setLocationRelativeTo(null);
	    setDefaultCloseOperation(EXIT_ON_CLOSE);
		setVisible(true);
	}
	
	public static void main(String args[]) {
		/* 
		 * Places the application on the Swing Event Queue. 
		 * Used to ensure that all UI updates are concurrency-safe (prevent GUI from hanging in certain situations.) 
		 */
		SwingUtilities.invokeLater(new Runnable() {
        @Override
        public void run() {
            Home example = new Home();
            example.setVisible(true);
        }
        });
	}

}
